//
//  UIView+Inspectable.swift
//  01-SinaWeibo
//
//  Created by 周英培 on 16/5/21.
//  Copyright © 2016年 周英培. All rights reserved.
//

import UIKit

extension UIView {

    @IBInspectable var cornerRadius : CGFloat {
    
        get {
        
            return layer.cornerRadius
        
        }
        
        set {
        
            layer.cornerRadius = newValue
        
        }
    
    }
    
    @IBInspectable var borderWidth : CGFloat {
    
        get {
        
        return layer.borderWidth
        
        }
        
        set {
        
        layer.borderWidth = newValue
        
        }
    
    }
    
    @IBInspectable var boderColor : UIColor {
    
        get {
        
        return UIColor(CGColor: layer.borderColor!)
        
        }
        
        set {
        
        layer.borderColor = newValue.CGColor
        
        }
        
    }

}